﻿@model Post
<div>
    <span style="float: left;">@Html.Global("forums", "By") &nbsp;</span>
    @Html.UserLink(Model.UserName, new { style = "float:left;" })
    <a style="display: inline-block; clear: left; margin-left: 3px;" href="@(new PostWrapper(Model).GetPermalink(Context))">
        <span class="forum-icon forum-icon-latest-topic" style="margin-top: 5px;"></span>
    </a>
</div>
<div>
    @switch ((DateTime.Today - Model.Posted).Days)
    {
        case 0:
        <b>@Html.Global("forums", "Today")</b> @Html.Global(Model.Posted, true)
                                          break;
        case 1:
        <b>@Html.Global("forums", "Yesterday")</b> @Html.Global(Model.Posted, true) 
                                              break;
        default:
        @Html.Global(Model.Posted)
   break;
    }
</div>
